<?php
class Amain {
	public static function main($sfuncode) {
		list($classid, $funcode) = explode('-', $sfuncode, 2);
		switch ($classid) {
			case 1:
				require 'studio.lib.php';
				Astudio::main($funcode);
				break;
			case 2:
				require 'operations.lib.php';
				Aoperations::main($funcode);
				break;
			case 3:
				require 'member.lib.php';
				Amember::main($funcode);
				break;
			case 4:
				require 'broadcaster.lib.php';
				Abroadcaster::main($funcode);
				break;
			case 5:
				require 'apply.lib.php';
				Aapply::main($funcode);
				break;
			case 6:
				require 'broadcasterv2.lib.php';
				Abroadcasterv2::main($funcode);
				break;
			case 7:
				require 'vipapply.lib.php';
				Avipapply::main($funcode);
				break;
			default:
				sview::$view->assign_error(404, lang::text(404));
		}
	}
}